solving first degree equations